<link rel="stylesheet" href="http://www.<?=DOMAIN?>/res/index/css/stars.css" type="text/css" />
<script type="text/javascript" src="<?= $_SERVER['config']['style']?>/js/stars.js"></script>
<?php
$ctinfo = $this->ret['cartoon'];
$cplist = $this->ret['chater'];
$catelist=	$this->ret['catelist'];
$cate	=	explode(',',$ctinfo['ct_category']);
$cate	=	$catelist[$cate[0]];
$j = count($cplist)-1;
?>
<div class="left nlw">
   <?require_once('part_roll.phtml');?>
   <p class="dqwz"><span>当前位置：</span><a href="<?=self::_makeURL('index','index','index')?>">首页</a><span>&gt;</span><a href="<?=self::_makeURL($this->app,$this->controller,'list',array('type'=>TYPE_CATEGORY,'k'=>$cate['id']))?>"><?=$cate['cate_name']?></a><span>&gt;</span><span><?=$ctinfo['ct_title']?></span></p>
   <?php require_once('part_cartoon_info.phtml');?>
   <?if($cplist):?>
   <?for($i=0;$i<count($cplist);$i++,$j--):?>
   <div class="tuijian nlw_c bo" id="zaixian">
     <div class="zxpic"><a class="bo" href="<?=self::_makeURL('index','index','view_photo',array('cid'=>$cplist[$j]['id']))?>"><img src="<?=cartoon_util_upload::getUrl($ctinfo['ct_cover'])?>" /></a></div>
     <div class="zxcen">
      <h2><a class="cl fw" href="<?=self::_makeURL('index','index','view_photo',array('cid'=>$cplist[$j]['id']))?>"><?=$ctinfo['ct_title'].$cplist[$j]['chapter_title']?></a></h2>
      <div id="neiron"><p><?=$cplist[$j]['info']?></p></div>
     </div>
      <div class="zxright">
      <ul>
       <li><a class="bo" href="<?=self::_makeURL('index','index','view_photo',array('cid'=>$cplist[$j]['id']))?>">在线阅读</a></li>
       <li><a class="bo" href="javascript:void(0);" onclick="Collect.add(<?=$ctinfo['id']?>,<?=$cplist[$j]['id']?>)">收藏</a></li>
      </ul>
      </div>
   </div>
   <?endfor;?>
   <?=$this->ret['pages']?>
   <?endif;?>
   <div class="tuijian nlw_c" id="pinlun">
    <div class="scrolldoorFrame" style="width:665px;">
  <ul class="scrollUl" id="bgre">
  <li class="sd01" id="m01"><a href="<?=self::_makeURL('index','index','view',array('cid'=>$ctinfo['id'],'com'=>1))?>"  class="a2 bo">所有评论</a></li>
  <li class="sd02" id="m02"><a href="<?=self::_makeURL('index','index','view',array('cid'=>$ctinfo['id'],'com'=>1))?>"  class="a1 bo">最新回复</a></li>
  <li class="sd02" id="m03"><a href="<?=self::_makeURL('index','index','view',array('cid'=>$ctinfo['id'],'com'=>1,'my'=>self::$login['uid']))?>"  class="a1 bo">我的评论</a></li>
  </ul>
  <div class="comment-box" id="index_view_detail_<?= $ctinfo['id']?>"> 
<div class="comment" >
<i:comment xmlns:i="178" app="index" controller="index" action="view" uid="<?=_('my')?self::$login['uid']:0?>"  id="<?= $ctinfo['id']?>" res_uid="<?= $ctinfo['ct_uid']?>" encrypt="<?=comment_util_comment::makeTheCode('index','index','view',$ctinfo['id'])?>" />
</div>
</div><!--conmment-box --> 
</div>
      <div class="clear"></div>
 </div>
   <div class="clear"></div>
</div>
<script type="text/javascript">
function scrollto(id){
	$(id).scrollTo();
}
$('mhjj').observe('click',function(){
	$('chapter_list').hide();$('c01').show();this.addClassName('selected');
	$('xzqs').removeClassName('selected');
});
$('xzqs').observe('click',function(){
	$('chapter_list').show();$('c01').hide();this.addClassName('selected');$('mhjj').removeClassName('selected');
});
<?if(_('com') == 1 ):?>
Event.observe(window,'load',function(e){
	scrollto('index_view_detail_<?= $ctinfo['id']?>');
})
<?endif;?>
</script>